/** 
 * @author: Sabuj kundu aka manchumahara (http://blog.manchumahara.com)
 * @copyright:  LGPL
*/

(function() {
	// Load plugin specific language pack
	tinymce.PluginManager.requireLangPack('banglavkb');
	tinymce.create('tinymce.plugins.BanglavkbPlugin', {
		init : function(ed, url) {
			// Register commands
			ed.addCommand('mceBanglavkb', function() {
				ed.windowManager.open({
					file : url + '/banglavkb.html',
					width : 500 ,
					height : 400,
					inline : 1
				}, {
					plugin_url : url
				});
			});		
			// Register button for banglavkb
			ed.addButton('banglavkb', {title : 'banglavkb.desc', cmd : 'mceBanglavkb',	image : url + '/img/banglavkb.gif'});
		},
		
		getInfo : function() {
			return {
				longname : 'Banglavkb',
				author : 'Sabuj Kundu aka manchumahara',
				authorurl : 'http://blog.manchumahara.com',
				infourl : 'http://blog.manchumahara.com',
				version : "1.0.0"
			};
		}
		
		
	});
	
	
	
	// Register plugin
	tinymce.PluginManager.add('banglavkb', tinymce.plugins.BanglavkbPlugin);
})();